Skip to content

Conversation

@Cmdv
Copy link
Contributor

@Cmdv Cmdv commented Oct 16, 2025

Fix: Reduce snapshot frequency during initial sync

Fixes issue #1992 by making ledger state snapshot intervals configurable and significantly reducing snapshot frequency during initial sync to improve performance.

Changes:

  • Added snapshot_interval configuration with following (default: 500) and lagging (default: 100,000, previously 10,000) parameters
  • Fixed bug in timeToSnapshot function that was ignoring the lagging interval (previously hardcoded to False)
  • When near tip, snapshots continue every 500 blocks for quick rollback recovery

New configuration:

{
 "snapshot_interval": {
   "near_tip_epoch": 580
 }
}

@Cmdv Cmdv requested a review from a team as a code owner October 16, 2025 09:13
@Cmdv Cmdv force-pushed the 1992-custom-snapshots-freq branch from 5facdcc to 87ad121 Compare October 16, 2025 09:19
@Cmdv Cmdv force-pushed the 1992-custom-snapshots-freq branch 2 times, most recently from fb8ab28 to faf1694 Compare October 22, 2025 09:27
@Cmdv Cmdv requested a review from a team as a code owner November 7, 2025 14:58
@Cmdv Cmdv force-pushed the 1992-custom-snapshots-freq branch from fe7aebe to b91eac5 Compare November 12, 2025 12:21
kderme
kderme previously approved these changes Nov 13, 2025
@Cmdv Cmdv force-pushed the 1992-custom-snapshots-freq branch from 6674531 to 7bf3d1b Compare November 17, 2025 15:25
@kderme kderme merged commit 00e5fa3 into master Nov 20, 2025
19 checks passed
@Cmdv Cmdv deleted the 1992-custom-snapshots-freq branch December 3, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants